import React from 'react';

import State from './State'

class Login extends React.Component {

    login(event) {
        const {history} = this.props;
        State.login(function () {
            history.push('/');
        });
    }

    render() {
        return (<div>
            <button onClick={this.login.bind(this)}>Login</button>
        </div>);
    }
}

export default Login;
